import request from '@/Utils/request.js'

/**
 * 登录验证
 * @param {*} data {username,password}
 *
 */
export function login (data) {
  return request({
    method: 'POST',
    url: '/user/login',
    data
  })
}

/**
 * 注册
 * @param {*} data {username,password}
 *
 */
export function register (data) {
  return request({
    method: 'POST',
    url: '/user/registered',
    data
  })
}
